<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewLancamentosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewLancamentosLabel_idLancamento}"/>
                    <h:outputText value="#{lancamentosController.selected.idLancamento}" title="#{bundle.ViewLancamentosTitle_idLancamento}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_historico}"/>
                    <h:outputText value="#{lancamentosController.selected.historico}" title="#{bundle.ViewLancamentosTitle_historico}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_valor}"/>
                    <h:outputText value="#{lancamentosController.selected.valor}" title="#{bundle.ViewLancamentosTitle_valor}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_tipoLancamento}"/>
                    <h:outputText value="#{lancamentosController.selected.tipoLancamento}" title="#{bundle.ViewLancamentosTitle_tipoLancamento}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_tipoPagamento}"/>
                    <h:outputText value="#{lancamentosController.selected.tipoPagamento}" title="#{bundle.ViewLancamentosTitle_tipoPagamento}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_fkUsuario}"/>
                    <h:outputText value="#{lancamentosController.selected.fkUsuario}" title="#{bundle.ViewLancamentosTitle_fkUsuario}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_fkContaDebitar}"/>
                    <h:outputText value="#{lancamentosController.selected.fkContaDebitar}" title="#{bundle.ViewLancamentosTitle_fkContaDebitar}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_fkContaCreditar}"/>
                    <h:outputText value="#{lancamentosController.selected.fkContaCreditar}" title="#{bundle.ViewLancamentosTitle_fkContaCreditar}"/>
                    <h:outputText value="#{bundle.ViewLancamentosLabel_data}"/>
                    <h:outputText value="#{lancamentosController.selected.data}" title="#{bundle.ViewLancamentosTitle_data}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{lancamentosController.destroyAndView}" value="#{bundle.ViewLancamentosDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewLancamentosEditLink}"/>
                <br />
                <h:commandLink action="#{lancamentosController.prepareCreate}" value="#{bundle.ViewLancamentosCreateLink}" />
                <br />
                <h:commandLink action="#{lancamentosController.prepareList}" value="#{bundle.ViewLancamentosShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewLancamentosIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
